<!DOCTYPE html>
<html>
<head>

  <include file="Public/title" />
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
    <link href="__PUBLIC__/assets_h/stylesheets/bootstrap.min.css" media="all" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/assets_h/stylesheets/style_h.css" media="all" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/assets_h/stylesheets/style.css" media="all" rel="stylesheet" type="text/css" />
<!--     <include file="Public/head" /> -->
<script src="__PUBLIC__/assets_h/javascripts/jquery.min.js" type="text/javascript"></script>
<script>
    $(".navbar.scroll-hide").mouseover(function() {
      $(".navbar.scroll-hide").removeClass("closed");
      return setTimeout((function() {
        return $(".navbar.scroll-hide").css({
          overflow: "visible"
        });
      }), 150);
    });
    $(function() {
      var delta, lastScrollTop;
      lastScrollTop = 0;
      delta = 50;
      return $(window).scroll(function(event) {
        var st;
        st = $(this).scrollTop();
        if (Math.abs(lastScrollTop - st) <= delta) {
          return;
        }
        if (st > lastScrollTop) {
          $('.navbar.scroll-hide').addClass("closed");
        } else {
          $('.navbar.scroll-hide').removeClass("closed");
        }
        return lastScrollTop = st;
      });
    });
    </script>

    <style>
.bu a.button {
    display: block;
    float: left;
    position: relative;
    height: 30px;
    width: 100px;
    margin: 0 10px 18px 0;
     
    text-decoration: none;
    font-family:"宋体" ;
    font-size:15px;

    font-weight: bold;
    line-height: 30px;
    text-align: center;
     
    -webkit-border-radius: 3px; 
    -moz-border-radius: 3px;
    border-radius: 3px;
}

/* GRAY */
.bu .gray,
.bu .gray:hover {
    color: white;
    border-bottom: 4px solid  #20B2AA;
    background:#e67213;
}
 
.bu .gray:before,
.bu .gray:after {
    border: 1px solid #87CEEB;
    border-bottom: 1px solid #87CEEB;
}
 
.bu .gray:hover { background: #e67213; }
/* ACTIVE STATE */

.bu a.button:active {
    border: none;
    bottom: -4px;
    margin-bottom: 22px;
     
    -webkit-box-shadow: 0 1px 1px  #008B8B;
    -moz-box-shadow:  0 1px 1px  #008B8B;
    box-shadow:  1px 1px 0 #008B8B, inset 0 1px 1px #008B8B;/*rgba(0, 0, 0, 0.3);*/
}
 
.bu a.button:active:before,
.bu a.button:active:after {
    border: none;   
     
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

.bu a.active{
  bottom: 4px;
  background:white;
  color: #87CEEB;
  border-style: none;
  border-bottom: none;
  border-bottom-style: none;
  border:none;
  pointer-events: none;
  -webkit-box-shadow: 0 1px 1px #008B8B;
    -moz-box-shadow:  0 1px 1px #008B8B;
    box-shadow:  1px 1px 0  #008B8B, inset 0 0.5px 1px #008B8B;/*rgba(0, 0, 0, 0.3);*/
}

    </style>

</head>
<body>
<div class="modal-shiftfix">
      <!-- Navigation -->
   <div class="navbar navbar-fixed-top scroll-hide">
        <div class="container-fluid top-bar">

            <button class="navbar-toggle"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button>&nbsp;
            <a href=""></a>
 </div>
 <div class="container-fluid main-nav clearfix">
            <div class="nav-collapse " style="padding-left: 20px">
                <ul class="nav" >
                    <li >
                        <a  style="font-family: SimHei;font-size: large" href="{:U('Index/index')}">首页</a>
                    </li>
                    <li>
                        <a style="font-family: SimHei;font-size: large" href="{:U('Food/foodlist')}">菜谱列表</a>
                    </li>
                    <li>
                        <a style="font-family: SimHei;font-size: large" href="{:U('Food/release')}">发布菜谱</a>
                    </li>
                    <li>
                        <a class="current " style="font-family: SimHei;font-size: large" href="{:U('Users/userinfo')}">用户信息</a>
                    </li>
                    
                </ul>

            </div>
        </div>
       
      </div>


    <div class="container-fluid main-content" style="min-height:560px">
          <div class="col-md-10  col-xs-12 col-sm-10 col-sm-offset-1 col-md-offset-1 col-xs-offset-1"   >
              <h2 style="color: #03c2f9; margin-bottom: 0px;padding-bottom: 0px;"><p class="bg-white" style="margin-bottom: 10px;margin-top: 10px" >发布菜谱</p></h2>
              <h4><p class="bg-info" style="margin-top:0px ;padding:10px" ><a href="{:U('Index/index')}" style="color: white">首页&nbsp;</a></p></h4>
 <p class="bg-white bu" style="height:40px;">         
               
    <a href="{:U('Food/foodlist')}" class="button gray " >菜谱列表</a>
 
</p>
                         
                  <div class="index_usertop" id="gamepktop">
              <div class="col-md-3  col-xs-12 col-sm-6 col-sm-offset-3 col-md-offset-4 col-xs-offset-2" >
              <h2 style="text-align: center;">菜谱发布</h2>
                  <form  method="post"  class="form-horizontal" action="{:U(dorelease)}"  enctype="multipart/form-data" onsubmit="return check();" >
                      <br>
                      <input class="form-control" placeholder="菜谱名称" type="text" id="name" name="name" required>
                      <br>
                      <input class="form-control" placeholder="菜系id(1,2,3,4)" type="text" id="tid" name="tid" required>
                      <br>
                      <input class="form-control" placeholder="联系电话" type="text" id="telephone" name="telephone" required>
                      <br>
                      <input class="form-control" placeholder="简介" type="text" id="jianjie" name="jianjie" required>
                      <br>
                      <input class="form-control" placeholder="做菜步骤"  type="text" id="intro" name="intro" required>
                      <br>
                   
                   <input type="file" id="photo" name="photo"> 
                      <input class="btn btn-block btn-info "  type="submit" value="发  布" >

                  </form>
              </div>      
            </div>

     </div>
      </div>
       <include file="Public/footer1" />
  </body>

</html>